package com.forever7776.life.core.entity.blog;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 博客拓展表
 * </p>
 *
 * @author kz
 * @since 2018-02-10
 */
@TableName("blog_ext")
public class BlogExt extends Model<BlogExt> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 博客ID
     */
    @TableField("blog_id")
    private Integer blogId;
    /**
     * 博客内容
     */
    private String content;
    /**
     * 个人记录类型（0：博客，1：日常记录 2：其它）
     */
    private Integer type;
    /**
     * 0：原帖 ，1：转帖
     */
    private Integer produce;
    /**
     * 转帖地址
     */
    @TableField("produce_url")
    private String produceUrl;
    /**
     * 是否允许博客被评论（0：否 1：是）
     */
    private Integer comment;
    /**
     * 评论是否显示（0：隐藏 1：显示）
     */
    @TableField("comment_show")
    private Integer commentShow;
    @TableField("insert_date")
    private Date insertDate;
    @TableField("last_date")
    private Date lastDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBlogId() {
        return blogId;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getProduce() {
        return produce;
    }

    public void setProduce(Integer produce) {
        this.produce = produce;
    }

    public String getProduceUrl() {
        return produceUrl;
    }

    public void setProduceUrl(String produceUrl) {
        this.produceUrl = produceUrl;
    }

    public Integer getComment() {
        return comment;
    }

    public void setComment(Integer comment) {
        this.comment = comment;
    }

    public Integer getCommentShow() {
        return commentShow;
    }

    public void setCommentShow(Integer commentShow) {
        this.commentShow = commentShow;
    }

    public Date getInsertDate() {
        return insertDate;
    }

    public void setInsertDate(Date insertDate) {
        this.insertDate = insertDate;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BlogExt{" +
                ", id=" + id +
                ", blogId=" + blogId +
                ", content=" + content +
                ", type=" + type +
                ", produce=" + produce +
                ", produceUrl=" + produceUrl +
                ", comment=" + comment +
                ", commentShow=" + commentShow +
                ", insertDate=" + insertDate +
                ", lastDate=" + lastDate +
                "}";
    }
}
